#version 330

layout(location = 0) out vec4 FragColor;

uniform sampler2D ReflectTexture;
uniform bool ReflectTextureUsed;

in vec2 posOfReflectTexture;

void main()
{
	if (ReflectTextureUsed)
	{
		FragColor = texture(ReflectTexture, posOfReflectTexture);
	}
	else
	{
		FragColor = vec4(.5);
	}
}